<template>
	<view class="bg-white" style="height: 100vh;">
		<cu-custom :isBack="true">
			<block slot="backText">返回</block>
			<block slot="content">图文内容预览</block>
		</cu-custom>
		<view class="padding" style="width: 100%;">
			<rich-content-display :title="title" :dataList="dataList"></rich-content-display>
		</view>
	</view>
</template>

<script>
	import RichContentDisplay from '@/components/rich-content-display.vue';
	export default {
		components: {
			RichContentDisplay,
		},
		data() {
			return {
				dataList: [],
				title:''
			}
		},
		onLoad() {
			const eventChannel = this.getOpenerEventChannel()
			let that = this
			eventChannel.on('previewData', function(data) {
			    that.dataList = data.list
				that.title = data.title
			})
		},
	}
</script>

<style scoped>

</style>